-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: better expose HTTP Error header information in error handling on write #745
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #745 +/- ##
============================================
- Coverage 88.51% 88.50% -0.02%
+ Complexity 786 785 -1
============================================
Files 174 174
Lines 7195 7203 +8
Branches 405 405
============================================
+ Hits 6369 6375 +6
- Misses 696 697 +1
- Partials 130 131 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Proposed Changes
Http Headers are already part of
InfluxException
. In theWriteApi
they can be accessed with anEventListener
. WithWriteApiBlocking
they get thrown inwrite
method calls.InfluxException
Note that Cloud v3 and OSS v2 handle exceptional streamed or batched data on the server side a little bit differently. It appears that with v3 cloud batches of data that include some invalid records along with valid ones, will still write the valid records and return a success HTTP status code. OSS v2 on the other hand returns an error status triggering an exception.
Checklist
mvn test
completes successfully